<template>
  <div class="detail-page">
    <van-nav-bar
      title="尚上名筑一区"
      left-arrow
      class="daohang"
      @click-left="$router.go(-1)"
    />
    <!-- 轮播 -->
    <div class="Carousel">
      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
        <van-swipe-item>1</van-swipe-item>
      </van-swipe>
    </div>
    <!-- 房间详情 -->
    <div class="details">
      <div class="box">
        <!-- 面板 -->
        <div class="seat">
          <van-panel title="暂无标题" desc="近地铁">
            <div class="panel">
              <div class="boxtou">
                <p class="price">112/月</p>
                <p class="configuration">租金</p>
              </div>
              <div class="boxtou">
                <p class="price">一室</p>
                <p class="configuration">房型</p>
              </div>
              <div class="boxtou">
                <p class="price">120平米</p>
                <p class="configuration">面积</p>
              </div>
            </div>
          </van-panel>
        </div>
        <!-- 面板 -->
        <div class="renovation">
          <div class="position">
            <div class="typeface">
              装修：<span class="fontcolor">精装</span>
            </div>
            <div class="typeface">
              楼层：<span class="fontcolor">高楼层</span>
            </div>
          </div>
          <div class="position">
            <div class="typeface">朝向：<span class="fontcolor">东</span></div>
            <div class="typeface">
              类型：<span class="fontcolor">普通住宅</span>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- 地图位置 -->
    <div>
      <div class="area">
        <div class="residential">小区：<span>天山星城</span></div>
      </div>
      <div class="map">
        <img src="" alt="" />
      </div>
    </div>
    <!-- 房屋配套 -->
    <div>
      <van-panel title="房屋配套">
        <div>
          <van-grid>
            <van-grid-item icon="tv-o" text="文字" :border="false" />
          </van-grid>
        </div>
      </van-panel>
    </div>
    <!-- 房源概况 -->
    <div>
      <van-panel title="房源概况">
        <div style="width: 100%; height: 62px">
          <div class="overview">
            <div style="width: 52px; height: 52px">
              <img
                src="@/assets/avatarname.png"
                alt=""
                style="width: 100%; height: 100%"
              />
            </div>
            <div class="authentication">
              <p class="resident">王女士</p>
              <van-icon name="certificate" color="#fa5741" />
              <p class="Homeowner">已认证房主</p>
            </div>

            <div class="message">
              <button>发消息</button>
            </div>
          </div>
          <div>
            <p style="font-size: 14px">
              1.周边配套齐全，地铁四号线陶然亭站，交通便利，公交云集，距离北京南站、西站都很近距离。
              2.小区规模大，配套全年，幼儿园，体育场，游泳馆，养老院，小学。
              3.人车分流，环境优美。
              4.精装两居室，居家生活方便，还有一个小书房，看房随时联系。
            </p>
          </div>
        </div>
      </van-panel>
    </div>

    <!--猜你喜欢  -->
    <div class="same">
      <van-panel title="猜你喜欢">
        <div>
          <ul>
            <li>
              <div class="pictrue">
                <img src="@/assets/3.png" alt="" />

                <div class="pictrue1">
                  <span class="one">整租</span>
                  <span class="two">两室一厅</span>
                  <span class="three">近地铁</span>
                  <i class="four">5000元/月</i>
                </div>
              </div>
            </li>
          </ul>
        </div>
      </van-panel>
    </div>

    <!-- 按钮 -->
    <div class="buttons">
      <div class="button">
        <van-button type="primary" size="large">收藏</van-button>
      </div>
      <div class="button">
        <van-button type="primary" size="large">在线咨询</van-button>
      </div>
      <div class="button">
        <van-button type="primary" size="large">电话预约</van-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'RoomDetails',
  data () {
    return {}
  },
  async created () {},
  methods: {}
}
</script>
<style lang="less" scoped>
.daohang {
  background-color: #21b97a;
}
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #39a9ed;
}
.Carousel {
  width: 100%;
  height: 252px;
  // background-color: #edfdc5;
  .my-swipe {
    height: 100%;
  }
}
.details {
  display: flex;
  width: 375px;
  height: 266px;
  // background-color: #cbfdcd;
  .box {
    margin: 0 auto;
    margin-top: 15px;
    width: 345px;
    height: 236px;
    // background-color: #cbeff8;
  }
}
.seat {
  border-bottom: solid 0.5px #ebedf0;
}
.panel {
  display: flex;
  width: 100%;
  height: 82px;
  // background-color: #6c92b6;
}
.boxtou {
  // display: flex;
  width: 110px;
  height: 52px;
  // background-color: #e69e9e;
  margin-left: 4px;
  margin-top: 15px;
  .price {
    height: 20px;
    margin-left: 26px;
    margin-top: -5px;
    font-size: 20px;
    color: #fa5741;
    // margin: 0 auto;
  }
  .configuration {
    margin-left: 38px;
    margin-top: -10px;
    font-size: 12px;
  }
}
.renovation {
  display: flex;
  margin-top: 15px;
  width: 345px;
  height: 52px;
  // background-color: #d55454;
  .position {
    margin-top: 5px;
    margin-left: 50px;
    font-size: 14px;
  }
  .typeface {
    color: #bbbbbb;
    .fontcolor {
      color: #000000;
    }
  }
}
.area {
  display: flex;
  width: 100%;
  height: 44px;
  background-color: #b87c7c;
  .residential {
    margin-top: 10px;
  }
}
.map {
  height: 145px;
  width: 100%;
  background-color: #b15a5a;
}
.buttons {
  display: flex;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 49px;
  // background-color: #07c160;
  .button {
    width: 125px;
    height: 100%;
  }
}
.overview {
  display: flex;
}
.resident {
  font-size: 13px;
  margin-left: 8px;
}
.Homeowner {
  margin-top: -19px;
  margin-left: 24px;
  font-size: 12px;
  color: #fa5741;
}
.authentication {
  margin-left: 5px;
}
.message {
  margin-left: 150px;
  margin-top: 19px;
}
.same {
  margin-top: 150px;
}
.bgca {
  // background-color: green;
}
.pictrue {
  width: 100%;
  height: 140px;
  background-color: white;
  border-bottom: solid 1px #f6f5f6;
  padding: 0 10px;
  display: flex;
  position: relative;
  .pictrue1 {
    width: 70%;
    height: 140px;
    .one {
      position: absolute;
      left: 32%;
      top: 15px;
      font-weight: 600;
    }
    .two {
      position: absolute;
      left: 32%;
      top: 45px;
    }

    .three {
      position: absolute;
      left: 32%;
      top: 75px;
      color: skyblue;
      background-color: #f6f5f6;
    }

    .four {
      position: absolute;
      left: 32%;
      top: 105px;
      font-style: normal;
      color: red;
    }
  }
}

img {
  width: 30%;
  height: 120px;
}
</style>
